package com.gosdk.p.vo;

import java.io.Serializable;

public class Offer implements Comparable<Offer>, Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5591449675640243699L;
	
	private String id;
	private String packagename;
	private String name;
	private String content;
	private String url;
	private String order;
	private String type;
	
    public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	@Override
    public int compareTo(Offer another) {
        
        if (Integer.valueOf(this.order) >= Integer.valueOf(another.order)) {
            return 1;
        } else {
            return -1;
        }
       
    }

    
    /**
     * @return the packagename
     */
    public String getPackagename() {
        return packagename;
    }
    /**
     * @param packagename the packagename to set
     */
    public void setPackagename(String packagename) {
        this.packagename = packagename;
    }
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }
    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }
    /**
     * @return the content
     */
    public String getContent() {
        return content;
    }
    /**
     * @param content the content to set
     */
    public void setContent(String content) {
        this.content = content;
    }
    /**
     * @return the url
     */
    public String getUrl() {
        return url;
    }
    /**
     * @param url the url to set
     */
    public void setUrl(String url) {
        this.url = url;
    }
    /**
     * @return the order
     */
    public String getOrder() {
        return order;
    }
    /**
     * @param order the order to set
     */
    public void setOrder(String order) {
        this.order = order;
    }
    /**
     * @return the type
     */
    public String getType() {
        return type;
    }
    /**
     * @param type the type to set
     */
    public void setType(String type) {
        this.type = type;
    }

	
}
